package com.xius.handler;

import com.xius.common.ApiErrorCode;
import com.xius.common.ApiException;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 全局异常
 * </p>
 *
 * @author yangkai.shen
 * @date Created in 2018-12-10 17:24
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SecurityException extends ApiException {
    public SecurityException(ApiErrorCode apiErrorCode) {
        super(apiErrorCode);
    }

    public SecurityException(ApiErrorCode apiErrorCode, Object data) {
        super(apiErrorCode, data);
    }

    public SecurityException(Long code, String message) {
        super(code, message);
    }

    public SecurityException(Long code, String message, Object data) {
        super(code, message, data);
    }
}
